import {createBrowserRouter} from 'react-router-dom'
import App from '../App'
import Contmain from '../components/mxd/component/contmain'
import Realname from '../components/mxd/component/Realname'   //实名认证
import Editphone from '../components/mxd/component/Editphone'  //修改手机号
import Payment from '../components/mxd/component/Payment'   //支付
// import Register from '../components/mxd/component/Register'  //注册
import Getimg from '../components/mxd/component/Getimg'   //核实身份
import Getuserimg from '../components/mxd/component/Getuserimg' //进行识别
import Loginpwd from '../components/mxd/component/Loginpwd'  //设置登录密码
import Paypwd from '../components/mxd/component/Paypwd'    //设置支付密码
import Aginpwd from '../components/mxd/component/Aginpwd'   //再次确认支付密码
import Setnewphone from '../components/mxd/component/Setnewphone'  //设置新手机号
import Renlian from '../components/mxd/component/Renlian'
import { Navigate } from 'react-router-dom'
const router = createBrowserRouter([
    {
        path:'/',
        element:<App/>,
        children:[
            {
                path:'/contmain',
                element:<Contmain></Contmain>
            },
            {
                path:'/editphone',
                element:<Editphone></Editphone>
            },
            {
                path:'/payment',
                element:<Payment></Payment>
            },
            {
                path:'/realname',
                element:<Realname></Realname>
            },
            {
                path:'/paypwd',
                element:<Paypwd></Paypwd>
            },
            // {
            //     path:'/register',
            //     element:<Register></Register>
            // },
            {
                path:'/getimg',
                element:<Getimg></Getimg>
            },
            {
                path:'/getuserimg',
                element:<Getuserimg></Getuserimg>
            },
            {
                path:'/loginpwd',
                element:<Loginpwd></Loginpwd>
            },
            {
                path:'/aginpwd',
                element:<Aginpwd></Aginpwd>
            },
            {
                path:'/setnewphone',
                element:<Setnewphone></Setnewphone>
            },
            {
                path:'/renlian',
                element:<Renlian></Renlian>
            },
            {
                path:'/',
                element:<Navigate to='Contmain'></Navigate>
            },
        ]
    },

])
export default router